package com.sprint.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PaymentController {

    @Value("${server.port}")
    private String serverport;

    @GetMapping(value = "/nacos/payment/{id}")
    public String getName(@PathVariable Integer id){
        return "这个是第 2 个nacos ["+serverport+"]服务监控请求  id : " + id;
    }
}
